const path = require('path');

module.exports = {
	mode: 'production',
    entry: path.resolve(__dirname, './src/main.js'),
    module: {
		rules: [
			{
				// test设置须要匹配的文件类型，支持正则
				test: /\.css$/,
				// use表示该文件类型须要调用的loader
				use: ['style-loader', 'css-loader'],
			},
			{
				test: /\.less$/,
				use: ['style-loader', 'css-loader', 'less-loader'],
			},
			{
				test: /\.scss/,
				use: ['style-loader', 'css-loader', 'sass-loader'],
			},
		]
	},
};